STD=-std=c++11
LD=-lpthread -ljsoncpp 
WIN=-lncursesw

Svr=../bin/svr/Server
Cli=../bin/user/hanhan

.PHONY:All
All:$(Svr) $(Cli)
$(Svr):ChatSever.cpp
	g++ $^ -o $@ $(STD) $(LD)
$(Cli):ChatClient.cpp
	g++ $^ -o $@ $(STD) $(LD) $(WIN)

.PHONY:clean
clean:
	rm -f $(Svr) $(Cli)
